package com.gt.admin.controller;

import com.gt.common.core.controller.BaseController;
import com.gt.common.core.domain.AjaxResult;
import com.gt.admin.service.IQuestionnaireCalculateDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "sc-筛查问卷计算详情")
@RestController
@RequestMapping("/questionnaire-manage/calculate")
public class QuestionnaireCalculateDetailController extends BaseController {
    @Autowired
    private IQuestionnaireCalculateDetailService questionnaireCalculateDetailService;

    /**
     * 审核说明，根据问卷id获取问卷计算详情
     */
    @ApiOperation("审核说明")
    @GetMapping("/{queId}")
    public AjaxResult list(@PathVariable("queId")Long queId){
        return AjaxResult.success(questionnaireCalculateDetailService.list(queId));
    }
}
